package S16.second;

import java.io.File;

public class S01 {

	public static void main(String[] args) {
		String[] students={"张三","李四","王五"};
		String root="D:/作业";
		for(String s: students) {
			for(int i=1;i<=3;++i) {
				String file = String.format("%s/%s/%02d", root, s, i); //"D:\\作业\\张三\\01"
				System.out.print(file+"\t");
				File dir = new File(file);
				System.out.println(dir.mkdirs());//创建目录结构，包括任何必要但不存在的父目录
			}
		}
		System.out.println("Over");

	}

}
